<?php
function list_files($dir)
{
  if(is_dir($dir))
  {
    if($handle = opendir($dir))
    {
      $i=0;
      while(($file = readdir($handle)) !== false)
      {
        if($file != "." && $file != ".." && $file != "Thumbs.db"/*pesky windows, images..*/)
        {
          $i++;
          getEchoTR($i);
echo <<< EOQ
  <td><a target="_blank" href="$dir$file">$file</a></td></tr>
EOQ;
        }
      }
      closedir($handle);
    }
  }
}

  $noSeasonChange = true;
  $title ="Downloads";
  include_once("includes/header.php");
echo <<< EOQ
      <tr>
        <td align="center">
          <h1>Available Downloads</h1>
        </td>
      </tr>
      <tr>
        <td align="left">
          <table>
EOQ;
  list_files("downloads/");
echo <<< EOQ
          </table>
        </td>
      </tr>
EOQ;

  include("includes/footer.php");
?>